package pl.koziolekweb.gallerygenerator;

import java.util.LinkedList;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import pl.koziolekweb.gallerygenerator.model.Obrazek;

public class GalleryMain {
	public static ApplicationContext applicationContext;

	public static void main(String[] args) {
		applicationContext = new FileSystemXmlApplicationContext(
				"./context.xml");
		String s = (String) applicationContext.getBean("simple");
		System.out.println(s);
		
		Processor processor= new ToXMLProcessor();
		processor.process(new LinkedList<Obrazek>());
	}
}
